﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ITAP.ContourBuilder.Manipulation
{
    public struct GlobalPeripheryState : IEquatable<GlobalPeripheryState>
    {
        private MouseState mouseState;

        public MouseState MouseState
        {
            get { return mouseState; }
            set { mouseState = value; }
        }
        private KeyboardState keyboardState;

        public KeyboardState KeyboardState
        {
            get { return keyboardState; }
            set { keyboardState = value; }
        }

        public GlobalPeripheryState(MouseState mouseState, KeyboardState keyboardState)
        {
            this.mouseState = mouseState;
            this.keyboardState = keyboardState;
        }

        #region IEquatable<GlobalPeripheryState> Members

        public bool Equals(GlobalPeripheryState other)
        {
            if (this.mouseState.Equals(other.mouseState) && this.keyboardState.Equals(other.keyboardState))
                return true;
            else
                return false;
        }

        #endregion
    }
}
